/**
 * Valve interface definition.
 * @author Paweł Pawłowski <abdul-pablo@tlen.pl>
 * @author Leily Zafari
 */

interface Valve{
	command void open(uint8_t throttle);
	command void openFull();
	command void close();
	command uint8_t getValvePosition();
	event void openDone(error_t result);
	event void closeDone(error_t result);
}